import config from '@/config'

//系统路由
const routes = [
	{
		name: 'layout',
		path: '/',
		component: () => import(/* webpackChunkName: "layout" */ '@/layout'),
		redirect: config.DASHBOARD_URL || '/dashboard',
		children: []
	},
	{
		path: '/componentsTest',
		component: () => import(/* webpackChunkName: "login" */ '@/views/componentsTest'),
		meta: {
			title: '组件测试页面'
		}
	},
	{
		path: '/login',
		component: () => import(/* webpackChunkName: "login" */ '@/views/login'),
		meta: {
			title: '登录'
		}
	},
	{
		path: '/user_register',
		component: () => import(/* webpackChunkName: "userRegister" */ '@/views/login/userRegister'),
		meta: {
			title: '注册'
		}
	},
	{
		path: '/reset_password',
		component: () => import(/* webpackChunkName: "resetPassword" */ '@/views/login/resetPassword'),
		meta: {
			title: '重置密码'
		}
	},
	{
		path: '/loadingM',
		component: () => import(/* webpackChunkName: "resetPassword" */ '@/views/customerManagementM/loadingM'),
		meta: {
			title: 'loading'
		}
	}
	,
	{
		path: '/flow',
		component: () => import(/* webpackChunkName: "resetPassword" */ '@/views/vab/flow.vue'),
		meta: {
			title: 'flow'
		}
	}
	,
	{
		path: '/codeeditor',
		component: () => import(/* webpackChunkName: "resetPassword" */ '@/views/vab/codeeditor.vue'),
		meta: {
			title: 'codeeditor'
		}
	}
	,
	{
		path: '/print',
		component: () => import(/* webpackChunkName: "resetPassword" */ '@/views/vab/print.vue'),
		meta: {
			title: 'print'
		}
	}
	,
	{
		path: '/coder',
		component: () => import(/* webpackChunkName: "resetPassword" */ '@/views/vab/coder.vue'),
		meta: {
			title: 'coder'
		}
	}
]

export default routes
